project(SAMPLER_TEST)

add_library(sampler_lib SHARED sampler_lib.cpp)
target_include_directories(sampler_lib PRIVATE "${ANI_INCLUDE_DIR}")
target_include_directories(sampler_lib PRIVATE ${PANDA_HELPERS_SOURCE_DIR})
target_link_libraries(sampler_lib arkruntime)

run_panda(
    TARGET_NAME sampler_test
    SRC_FILE_NAME "SamplerTest.ets"
    ADDITIONAL_OPTIONS "--native-library-path=${CMAKE_CURRENT_BINARY_DIR}"
    EXTRA_DEPS sampler_lib
)
